package com.itheima.service.db;

import com.itheima.domain.SmsHomeAdvertise;
import com.itheima.vo.PageBeanVo;

import java.util.List;

public interface SmsHomeAdvertiseService {
    //广告分页查询
    PageBeanVo findAdvertiseByPage(String endTime, String name, Integer pageNum, Integer pageSize, Integer type);

    //获取广告详情
    SmsHomeAdvertise findAdvertiseInfo(Integer id);

    //修改广告
    void updateAdvertise(SmsHomeAdvertise advertise, Integer id);

    //修改广告状态
    void updateAdvertiseStatus(Integer id, Integer status);

    //添加广告
    void addAdvertise(SmsHomeAdvertise advertise);

    //删除广告
    void deleteAdvertise(List<Integer> ids);
}
